﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TTBusiness
{
    public static class clsBSMessageAdmin
    {
        public static StringBuilder MessageWarning(string title, string message)
        {
            try
            {
                StringBuilder str = new StringBuilder();
                str.Append("<div class=\"status warning\">");
                str.Append("<p class=\"closestatus\"><a href=\"\" title=\"Close\">x</a></p>");
                str.Append("<p><img src=\"/Admin/Images/icon_warning.png\" alt=\"Warning\"><span>");
                str.Append(title);
                str.Append("</span>");
                str.Append(message);
                str.Append("</p>");
        	    str.Append(" </div>");
                return str;
            }
            catch (Exception)
            {
                
                throw;
            }
        }
        public static StringBuilder MessageSuccess(string title, string message)
        {
            try
            {
                StringBuilder str = new StringBuilder();
                str.Append("<div class=\"status success\">");
                str.Append("<p class=\"closestatus\"><a href=\"\" title=\"Close\">x</a></p>");
                str.Append("<p><img src=\"/Admin/Images/icon_success.png\" alt=\"Success\"><span>");
                str.Append(title);
                str.Append("</span>");
                str.Append(message);
                str.Append("</p>");
                str.Append(" </div>");
                return str;
            }
            catch (Exception)
            {

                throw;
            }
        }
        public static StringBuilder MessageError(string title, string message)
        {
            try
            {
                StringBuilder str = new StringBuilder();
                str.Append("<div class=\"status error\">");
                str.Append("<p class=\"closestatus\"><a href=\"\" title=\"Close\">x</a></p>");
                str.Append("<p><img src=\"/Admin/Images/icon_error.png\" alt=\"Error\"><span>");
                str.Append(title);
                str.Append("</span>");
                str.Append(message);
                str.Append("</p>");
                str.Append(" </div>");
                return str;
            }
            catch (Exception)
            {

                throw;
            }
        }
        public static StringBuilder MessageInfo(string title, string message)
        {
            try
            {
                StringBuilder str = new StringBuilder();
                str.Append("<div class=\"status info\">");
                str.Append("<p class=\"closestatus\"><a href=\"\" title=\"Close\">x</a></p>");
                str.Append("<p><img src=\"/Admin/Images/icon_info.png\" alt=\"Information\"><span>");
                str.Append(title);
                str.Append("</span>");
                str.Append(message);
                str.Append("</p>");
                str.Append(" </div>");
                return str;
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
